package io.renren.common.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * Created by ThinkPad on 2018/10/17.
 */
@Component
@PropertySource(value={"classpath:fileserver.properties"})
public class FileServerConfig {

    @Value("${file_upload_url}")
    private String fileUploadUrl;

    @Value("${image_upload_url}")
    private String imageUploadUrl;

    @Value("${doc_upload_url}")
    private String docuploadUrl;

    @Value("${download_url}")
    private String downloadUrl;

    @Value("${resouce_download_url}")
    private String resouceDownloadUrl;

    @Value("${delete_file_url}")
    private String deleteFileUrl;

    public String getFileUploadUrl() {
        return fileUploadUrl;
    }

    public String getImageUploadUrl() {
        return imageUploadUrl;
    }

    public String getDocuploadUrl() {
        return docuploadUrl;
    }

    public String getDownloadUrl() {
        return downloadUrl;
    }

    public String getResouceDownloadUrl() {
        return resouceDownloadUrl;
    }

    public String getDeleteFileUrl() {
        return deleteFileUrl;
    }

}
